package main

import (
	"fmt"
	"time"
)

var globalVar int = 10

func main() {
	//1
	//fmt.Println("Hello, World!")
	//
	//var siteMap = make(map[int]string)
	//siteMap[1] = "谷歌"
	//siteMap[17] = "菜鸟教程"
	//siteMap[33] = "百度"
	//siteMap[49] = "维基百科"
	//fmt.Println(siteMap)

	//2
	println("你好王金玉")
	currentTime := time.Now()
	timestampInMilliseconds := currentTime.UnixMilli()
	fmt.Println("Current timestamp: ", timestampInMilliseconds)

	//fmt.Println(globalVar)

	var input string
	fmt.Scanln(&input)

	//for循环
	for true {
		fmt.Println("for循环")
	}

	sum := 0
	for i := 0; i <= 10; i++ {
		sum += i
	}
	fmt.Println(sum)

	//3. 声明变量
	//Name string="jack";
	//fmt.Println(Name);
}
